﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace dzs.Web.user
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int user_id=(Convert.ToInt32(strid));
					ShowInfo(user_id);
				}
			}
		}
		
	private void ShowInfo(int user_id)
	{
		dzs.BLL.user bll=new dzs.BLL.user();
		dzs.Model.user model=bll.GetModel(user_id);
		this.lbluser_id.Text=model.user_id.ToString();
		this.lbluser_name.Text=model.user_name;
		this.lbluser_login.Text=model.user_login;
		this.lbluser_pass.Text=model.user_pass;
		this.lbluser_mobelPhone.Text=model.user_mobelPhone;
		this.lbluser_phone.Text=model.user_phone;
		this.lbluser_fax.Text=model.user_fax;
		this.lbluser_company.Text=model.user_company;
		this.lbluser_email.Text=model.user_email;
		this.lblroles_id.Text=model.roles_id.ToString();
		this.lblremark.Text=model.remark;
		this.lblsid.Text=model.sid.ToString();

	}


    }
}
